package com.cloud.bssp.monitor.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import reactor.core.publisher.Mono;
import springfox.documentation.swagger.web.SwaggerResource;

import java.util.List;

/**
 * @description： 接口文档ui
 * @author：weirx
 * @date：2021/3/30 14:13
 * @version：3.0
 */
@FeignClient(name = "bssp-gateway-service", path = "/swagger", contextId = "base")
public interface SwaggerClient {

    /**
     * description: 获取当前注册中心上的服务

     * @return: reactor.core.publisher.Mono<org.springframework.http.ResponseEntity>
     * @author: weirx
     * @time: 2021/3/30 14:17
     */
    @GetMapping("/getServiceName")
    List<String> swaggerResources();
}
